import { Base } from '../base.js';

class Dealer extends Base {

	getCenter(){
		var params = {
			url: 'v1/dealer/center'
		}
		return this.request(params);
	}
	
	/**
	 * 获取分销状态
	 */
	getStatus() {
		var params = {
			url: 'v1/dealer.apply/status'
		}
		return this.request(params);
	}
	
	/**
	 * 申请团长
	 * @param {Object} name
	 * @param {Object} mobile
	 */
	apply(name, mobile){
		var params = {
			url: 'v1/dealer.apply/add',
			type: 'post',
			data: {
				name: name, 
				mobile: mobile
			},
		}
		return this.request(params)
	}
	
	
	
};

export { Dealer };
